//
//  ZDBManager.h
//  NewProject
//
//  Created by Apple on 2018/7/10.
//  Copyright © 2018年 chenIos. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZDBManager : NSObject
//创建钱包

+ (void)createWallet:(NSString *)name password:(NSString *)password address:(NSString *)address privateKey:(NSString *)key complition:(void (^)(BOOL exist, BOOL addressExist ,BOOL isFirst,BOOL createSuccess))completionHandler;
//更新钱包钱数
+ (void)changePkCoin:(NSString *)address coin:(long long)coin coinString:(NSString *)coinStr;
 //查询钱包数量
+ (void)queryWallets:(NSInteger)page completion:(void (^)(NSArray *wallets))completionHandler;
//修改选中钱包
+ (void)changeSelectedWallet:(NSString *)address completion:(void(^)(BOOL isSuccess))completionHandler;
//查询选中钱包
+ (void)qureySelectedWallet:(void(^)(NSDictionary *))completionHandler;
//判断是否有重名
//+ (void)qureyName:(NSString *)name completion:(void(^)(BOOL exist))completionHandler;
//删除钱包
+ (void)deleteWallet:(NSString *)address completion:(void(^)(BOOL isSuccess, BOOL isHasWallet))completionHandler;
//更改密码
+ (void)changePassword:(NSString *)password wallet:(NSString *)address completion:(void(^)(BOOL isSuccess))completionHandler;
//查询交易密码
+ (void)queryPassword:(NSString *)address  completion:(void(^)(NSString *password))completionHandler;
//查询私钥
+ (void)queryPrivateKey:(NSString *)address  completion:(void(^)(NSString *privateKey))completionHandler;

@end
